package kids.movies.hoathinhHDSRC.db;

import android.content.Context;
import android.content.SharedPreferences;

public class PreferenceHelper {
	public static final String TIME_GET_DATA = "time_get";
	private SharedPreferences sharedPreferences;

	public PreferenceHelper(Context context) {
		this.sharedPreferences = context.getSharedPreferences("vChat", 0);
	}

	public void setTimeGetData(long value) {
		SharedPreferences.Editor localEditor = this.sharedPreferences.edit();
		localEditor.putLong(TIME_GET_DATA, value);
		localEditor.commit();
	}
	public long getTimeGetData() {
		return this.sharedPreferences.getLong(TIME_GET_DATA, 0);
	}

}
